package com.suny.constant;

/**
 * Redis Key 常量
 */
public class RedisKeyConstant {
    // 正常缓存时间 30分钟
    public static final int CACHE_TIME = 30 * 60 * 1000;
    
    // 空结果缓存时间 5分钟
    public static final int EMPTY_CACHE_TIME = 5 * 60 * 1000;
    // 城市相关
    public static final String CITY_LIST = "city:list";
    public static final String ACCOUNT_LIST = "account:list";
    public static final String ACCOUNT_INFO_PREFIX = "account:info:";
    public static final String ACCOUNT_PHONE_PREFIX = "account:phone:";
    // 牧场相关
    public static final String FARM= "farm:*";
    public static final String FARM_LIST = "farm:list";
    public static final String FARM_ENABLE_LIST = "farm:enable:list";
    public static final String FARM_DETAIL_PREFIX = "farm:detail:";

    // 圈舍相关
    public static final String PEN_LIST = "pen:list";
    public static final String PEN_FARM_PREFIX = "pen:farm:";
    public static final String PEN_FARM_PREFIX_SELECT = "pen:farm:select:";
    // 围栏相关
    public static final String FENCE_LIST = "fence:list";
    public static final String FENCE_PEN_PREFIX = "fence:pen:";

    // 数据字典相关
    public static final String DIC = "dic";
    public static final String DIC_LIST = "dic:list";
    public static final String DIC_VAL_LIST = "dic:val:list";
    public static final String DIC_VAL_PREFIX = "dic:val:";
    public static final String DIC_VAL_SELECT = "dic:val:select" ;


    // 存栏相关
    public static final String FARM_STOCKS_LIST = "farm:stocks:list";
    public static final String FARM_STOCKS_FARM_PREFIX = "farm:stocks:farm:";
    public static final String FARM_STOCKS_PEN_PREFIX = "farm:stocks:pen:";
    public static final String FARM_STOCKS_FENCE_PREFIX = "farm:stocks:fence:";
    public static final String FARM_SELECT =  "farm:select";
}